transpose of matrices in c programming